package com.lxh.command;

/**
 * 命令模式
 * Create by lxh on 2020/2/14
 */
public class Main {
    public static void main(String[] args) {
        Barbecuer barbecuer = new Barbecuer();
        Waiter waiter = new Waiter();

        waiter.setOrder(new BakeChickenWingCommand(barbecuer));
        waiter.setOrder(new BakeChickenWingCommand(barbecuer));
        waiter.setOrder(new BakeMuttonCommand(barbecuer));

        waiter.action();
    }
}
